package per.turtle.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import per.turtle.common.core.annotation.MaxSizeWithCharset;
import per.turtle.common.core.web.entity.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * @author turtle
 */
@ApiModel(value = "SysDictType", description = "字典类型")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dict_type")
@ToString
public class SysDictType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("字典主键")
    @TableId(type = IdType.AUTO)
    private Long dictId;

    @ApiModelProperty("字典名称")
    @NotBlank(message = "字典名称不能为空")
    @MaxSizeWithCharset(max = 63, message = "字典类型名称超出限定长度！")
    private String dictName;

    @ApiModelProperty("字典类型")
    @NotBlank(message = "字典类型不能为空")
    @MaxSizeWithCharset(max = 63, message = "字典类型类型超出限定长度！")
    private String dictType;

    @ApiModelProperty("是否停用（1：是；0：否）")
    private Boolean isDisabled;

}

